from django.urls import path, include
from rest_framework import routers

from datacenter.controllers.entity import EntityViewSet
from datacenter.controllers.data import DataViewSet
from datacenter.controllers import datasource
from datacenter.controllers import standard


router = routers.DefaultRouter(trailing_slash=False)
router.register(r'entities', EntityViewSet)
router.register(r'data', DataViewSet)

urlpatterns = [
    path(r'', include(router.urls)),
    path(r'datasource/dbs', datasource.dbs),
    path(r'datasource/tables', datasource.tables),
    path(r'datasource/columns', datasource.columns),
    path(r'standard/models', standard.models),
]
